export default async function getData(request, methods, url, data) {
    switch (methods) {
        case "get": {
            const { data: res } = await request.get(url, data);
            return res
        }
        case "post": {
            const { data: res } = await request.get(url, data);
            return res
        }

    }

}

